<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Menu - <span class="subitem">PanelMenu</span>
    </ui:define>

    <ui:define name="description">
        PanelMenu is a hybrid of accordion-tree components.
    </ui:define>

    <ui:param name="documentationLink" value="/components/panelmenu" />

    <ui:define name="implementation">

        <h:form>
            <p:growl>
                <p:autoUpdate />
            </p:growl>

            <p:panelMenu style="width:300px">
                <p:submenu label="Ajax Menuitems">
                    <p:menuitem value="Save" action="#{menuView.save}" icon="pi pi-save" />
                    <p:menuitem value="Update" action="#{menuView.update}"  icon="pi pi-refresh" />
                </p:submenu>
                <p:submenu label="Non-Ajax Menuitem">
                    <p:menuitem value="Delete" action="#{menuView.delete}"  ajax="false" icon="pi pi-times"/>
                </p:submenu>
                <p:separator />
                <p:submenu label="Navigations" >
                    <p:submenu label="Links" icon="pi pi-home">
                        <p:submenu label="PrimeFaces" icon="pi pi-briefcase">
                            <p:menuitem value="Home" url="http://www.primefaces.org" icon="pi pi-home" />
                            <p:menuitem value="Docs" url="http://www.primefaces.org/documentation" icon="pi pi-file" />
                            <p:menuitem value="Download" url="http://www.primefaces.org/downloads" icon="pi pi-arrow-down" />
                            <p:menuitem value="Support" url="http://www.primefaces.org/support" icon="pi pi-briefcase" />
                        </p:submenu>
                    </p:submenu>
                    <p:menuitem value="Mobile" icon="pi pi-mobile" />
                </p:submenu>
            </p:panelMenu>
        </h:form>

    </ui:define>

</ui:composition>